
<include file="public@header" />
</head>
<body>
<div class="wrap">
	<ul class="nav nav-tabs">
		<li><a href="{:url('/user/admin_index/index')}">本站用户</a></li>
		<li class="active"><a>编辑用户</a></li>
	</ul>
	<form method="post" class="form-horizontal margin-top-20 js-ajax-form" action="{:url('/company/admin_user/editBasePost')}">
		<div class="form-group">
			<label for="user_login" class="col-sm-2 control-label">登录名称</label>
			<div class="col-md-2 col-sm-10">
				<input type="text" class="form-control" id="user_login" name="post[user_login]" value="{$post['user_login']}">
			</div>

			<label for="user_nickname" class="col-sm-2 control-label">用户昵称</label>
			<div class="col-md-2 col-sm-10">
				<input type="text" class="form-control" id="user_nickname" name="post[user_nickname]"  value="{$post['user_nickname']}">
			</div>

		</div>
		<div class="form-group">
			<label for="birthday" class="col-sm-2 control-label">出生日期</label>
			<div class="col-md-2 col-sm-10">
				<input type="text" class="form-control js-bootstrap-date" id="birthday" name="post[birthday]"  value="{:date('Y-m-d',$post['birthday'])}">
			</div>

			<label for="sex" class="col-sm-2 control-label"><span class="form-required">*</span>性别</label>
			<div class="col-md-2 col-sm-10">
				<select class="form-control" id="sex" name="post[sex]" >


					<option value="">请选择性别</option>
					<php>

						$personSex = config('person_sex');
						if (!empty($personSex)) {

						foreach ($personSex as $key=>$value) {
							$selected="";
							if($key==$post['sex']){
							$selected="selected";
							}

							echo "<option value='$key' $selected>$value</option>";
						}

						}

					</php>
				</select>

			</div>
		</div>
		<div class="form-group">
			<label for="input-user_email" class="col-sm-2 control-label">{:lang('EMAIL')}</label>
			<div class="col-md-2 col-sm-10">
				<input type="text" class="form-control" id="input-user_email" name="post[user_email]" value="{$post['user_email']}">
			</div>

			<label for="mobile" class="col-sm-2 control-label"><span class="form-required">*</span>{:lang('MOBILE')}</label>
			<div class="col-md-2 col-sm-10">
				<input type="text" class="form-control" id="mobile" name="post[mobile]" value="{$post['mobile']}">
			</div>
		</div>


		<div class="form-group">
			<label for="user_status" class="col-sm-2 control-label"><span class="form-required">*</span>状态</label>
			<div class="col-md-2 col-sm-10">
				<select class="form-control" id="user_status" name="post[user_status]" >
					<volist name="member_status" id="vo">

						<php>
							$selected="";
							if($vo->id==$post['user_status']){
							$selected="selected";
							}
						</php>
						<option value="{$vo.id}" {$selected}>{$vo.name}</option>

					</volist>
				</select>

			</div>


		</div>


		<div class="form-group">
			<div class="col-sm-offset-2 col-sm-10">
				<input type="hidden" name="post[id]" value="{$post['id']}" />
				<button type="submit" class="btn btn-primary js-ajax-submit">{:lang('SAVE')}</button>
				<a class="btn btn-default" href="javascript:history.back(-1);">{:lang('BACK')}</a>
			</div>
		</div>
	</form>
</div>
<script src="__STATIC__/js/admin.js"></script>
</body>
</html>